define([ "app", "jquery", "md5", "ecb","artDialog","iframeTools",  "services/UserService","services/TipsService",
		"directives/AudioPlayer",
		"resources/company/CompanyResource", 
		"resources/UserResource", "resources/ShareResource" ],
		function(app) {
			var deps = [ "$scope", "$state","$sce", "$timeout", "$window", "$location", "$stateParams","TipsService", "UserService", "UserResource", "ShareResource","CompanyResource" ];

			function controller($scope, $state,$sce,$timeout, $window, $location, $stateParams,TipsService, UserService, UserResource, ShareResource,CompanyResource) {
				
				var resumeId =$stateParams.resumeId;
				queryData();
				function queryData(){
					CompanyResource.queryResumeById(resumeId).success(function(data){
						$scope.resume={};
						$scope.resume=data.obj;
						if($scope.resume.sex==1){
							$scope.resume.sex="男";
						}else{
							$scope.resume.sex="女";
						}
		            });
				}
				
				
				$scope.closeResume =function (){
					$state.go('home.resumeManagement');
				}
			}
			controller.$inject = deps;
			return app.lazy.controller("ViewResumeController", controller);
		});
